package com.key.win.business.chat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.key.win.base.web.PageRequest;
import com.key.win.base.web.PageResult;
import com.key.win.business.chat.model.ImGroup;

import java.util.List;
import java.util.Set;

public interface ImGroupService extends IService<ImGroup> {

    PageResult<ImGroup> findGroupByPaged(PageRequest<ImGroup> t);

    List<ImGroup> findGroup(ImGroup imGroup);

    boolean addGroup(ImGroup imGroup);

    boolean updateGroup(ImGroup imGroup);

    List<ImGroup> findGroupByUserId(String userId);

    List<ImGroup> findGroupByUserIds(Set<String> userIds);

    boolean deleteGroup(String id);

    boolean clearNotice(String groupId);
}
